#include "StdAfx.h"
#include "Layout.h"
#include "LayoutObject.h"

Layout::Layout(void) : isDirty_(true)
{
}


Layout::~Layout(void)
{
}

void Layout::ItemChanged()
{
	isDirty_ = true;
}
void Layout::AddObject(LayoutObject* obj)
{
	printf("%f\n", obj);
	objects_.push_back(obj);
	printf("");
	connect(obj, SIGNAL(ObjectChanged()), SLOT(ItemChanged()));
	ObjectAdded(obj);
}
void Layout::RemoveObject(LayoutObject* obj)
{
	objects_.remove(objects_.indexOf(obj));
	obj->disconnect(this);
	ObjectRemoved(obj);
}
